statefiles: move dhcpv6_ia_enum_addrs() to odhcpd.c
authorDavid Härdeman <[email protected]>
Sat, 8 Nov 2025 13:40:39 +0000 (14:40 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 11 Nov 2025 07:30:23 +0000 (08:30 +0100)
commitbb39f088f3ef57473df1fe787761bf6654ff19d7
treee394c77bc685e95663ec923e19e0a9def3ba7b4c
parentcc614a451f9b16110060e8b546a51b0276a8fe53
statefiles: move dhcpv6_ia_enum_addrs() to odhcpd.c

dhcpv6_ia_enum_addrs() is used in several different places (ubus,
statesfile, dhcpv6-ia), so move it to a more central location. At the
same time, rename it to odhcpd_enum_addr6().

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/302
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv6-ia.c
src/odhcpd.c
src/odhcpd.h
src/statefiles.c
src/statefiles.h
src/ubus.c